package fr.afcepf.iziticket.entities;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

@Entity
@DiscriminatorValue("PROG")
public class Programmateur extends Utilisateur{

	@OneToMany(mappedBy="programmateur")
	private List<Theatre> theatres = new ArrayList<Theatre>();
	
	public List<Theatre> getTheatres() {
		return theatres;
	}
	public void setTheatres(List<Theatre> theatres) {
		this.theatres = theatres;
	}
	
	public Programmateur() {
		super();
	}
	
}
